$OpenBSD: patch-Wnn_jutil_atod_c,v 1.2 2017/04/29 14:31:40 espie Exp $
--- Wnn/jutil/atod.c.orig
+++ Wnn/jutil/atod.c
@@ -54,6 +54,9 @@ UJIS �����򡢼�����Ͽ��ǽ����, �ڤӸ������������Ѵ��
 
 #include <stdio.h>
 #include <ctype.h>
+#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include "commonhd.h"
 #include "config.h"
 #include "jslib.h"
@@ -113,7 +116,6 @@ struct uind1 *tary;		/* index 1 */
 int tnum = 0;
 struct uind2 *uhopter;
 
-char *malloc();
 char *hinsi_file_name = NULL;
 
 
@@ -219,7 +221,7 @@ extern int sort_func_sdic();
 extern int sort_func_je();
 FILE *ofpter , *fopen();
 
-void
+int
 main(argc,argv)
      int argc ;
      char **argv;
